// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 68);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


module.exports = {
  calcTotal: function calcTotal(arr, k) {
    var sum = 0;
    arr.forEach(function (item) {
      if (k) {
        sum += 1 * item[k];
      } else {
        sum += item;
      }
    });
    return sum;
  },
  setTimeFormat: function setTimeFormat(time) {
    var h = this.setZero(Math.floor(time / 3600));
    var i = this.setZero(Math.floor(time % 3600 / 60));
    var s = this.setZero(time % 60);
    return h + ':' + i + ':' + s;
  },
  kmtom: function kmtom(miles) {
    return (miles / 1000).toFixed(2);
  },
  getDate: function getDate() {
    var d = new Date();
    var datestring = d.getFullYear() + '-' + ('0' + (1 + d.getMonth())).slice('-2') + '-' + ('0' + d.getDate()).slice(-2) + ' ' + ('0' + d.getHours()).slice(-2) + ':' + ('0' + d.getMinutes()).slice(-2);
    return datestring;
  },
  setZero: function setZero(number) {
    return number < 10 ? '0' + number : number;
  },
  calcSpeed: function calcSpeed(distance, time) {
    return (distance / time * 3.6).toFixed(2);
  },
  setPosition: function setPosition(path) {
    var l = path.length;
    var longitudes = 0;
    var latitudes = 0;
    path.forEach(function (item) {
      longitudes += item[1];
      latitudes += item[0];
    });
    return [(latitudes / l).toFixed(6), (longitudes / l).toFixed(6)];
  },
  extend: function extend(obj1, obj2) {
    for (var p in obj2) {
      try {
        if (obj2[p].constructor === Object) {
          obj1[p] = this.extend(obj1[p], obj2[p]);
        } else {
          obj1[p] = obj2[p];
        }
      } catch (e) {
        obj1[p] = obj2[p];
      }
    }
    return obj1;
  },
  setBundleUrl: function setBundleUrl(url, jsFile) {
    var bundleUrl = url;
    var host = '';
    var path = '';
    var nativeBase = void 0;
    var isAndroidAssets = bundleUrl.indexOf('your_current_IP') >= 0 || bundleUrl.indexOf('file://assets/') >= 0;
    var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0;
    if (isAndroidAssets) {
      nativeBase = 'file://assets/dist';
    } else if (isiOSAssets) {
      // file:///var/mobile/Containers/Bundle/Application/{id}/WeexDemo.app/
      // file:///Users/{user}/Library/Developer/CoreSimulator/Devices/{id}/data/Containers/Bundle/Application/{id}/WeexDemo.app/
      nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1);
    } else {
      var matches = /\/\/([^\/]+?)\//.exec(bundleUrl);
      var matchFirstPath = /\/\/.+\/([^\/]+?)\//.exec(bundleUrl);
      if (matches && matches.length >= 2) {
        host = matches[1];
      }
      if (matchFirstPath && matchFirstPath.length >= 2) {
        path = matchFirstPath[1];
      }
      nativeBase = 'http://' + host + '/';
    }
    var h5Base = './index.html?page=';
    // in Native
    var base = nativeBase;
    if (typeof navigator !== 'undefined' && (navigator.appCodeName === 'Mozilla' || navigator.product === 'Gecko')) {
      // check if in weexpack project
      if (path === 'web' || path === 'dist') {
        base = h5Base + '/dist/';
      } else {
        base = h5Base + '';
      }
    } else {
      base = nativeBase + path + '/';
    }

    var newUrl = base + jsFile;
    return newUrl;
  },
  getUrlParam: function getUrlParam(url, key) {
    var reg = new RegExp('[?|&]' + key + '=([^&]+)');
    var match = url.match(reg);
    return match && match[1];
  }
};

/***/ }),

/***/ 27:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(28)
)

/* script */
__vue_exports__ = __webpack_require__(29)

/* template */
var __vue_template__ = __webpack_require__(30)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/yutianduan/Desktop/跨平台/OneByOne/src/components/home.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-baa33622"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__


/***/ }),

/***/ 28:
/***/ (function(module, exports) {

module.exports = {
  "webHome": {
    "width": "750",
    "height": "1200",
    "marginTop": "10"
  }
}

/***/ }),

/***/ 29:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
//
//
//
//
//
//
//
//
//
//
//
//
//


var utils = __webpack_require__(0);
var navigator = weex.requireModule('navigator');
var modal = weex.requireModule('modal');
var webview = weex.requireModule('webview');
// http://eip7s3test.hkbf.com.cn/#/Home
exports.default = {
  data: function data() {
    return {
      homeUrl: 'http://eip7stest2.hkbf.com.cn/home/schedule?&uid=BF1010755',
      show: false
    };
  },


  methods: {
    // tood () {
    //   const url = weex.config.bundleUrl
    //   var newUrl = utils.setBundleUrl(url, 'MyCenter/mySet.js')
    //   navigator.push({
    //      url: newUrl+'',
    //      animated: "true"
    //  }, event => {
    //      modal.toast({ message: 'callback: ' + newUrl,duraction:1000})
    //  })
    // },

    reload: function reload(event) {
      console.log('will reload webview');
      modal.toast({ message: 'reload' });
      webview.reload(this.$refs.webview);
    },
    start: function start(event) {
      console.log('pagestart', event);
      modal.toast({ message: 'pagestart' });
    },
    finish: function finish(event) {
      console.log('pagefinish', event);
      modal.toast({ message: 'pagefinish' });
    },
    error: function error(event) {
      console.log('error', event);
      modal.toast({ message: 'error' });
    }
  }
};

/***/ }),

/***/ 30:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: ["home-container"]
  }, [_c('web', {
    ref: "webview",
    staticClass: ["webHome"],
    attrs: {
      "src": _vm.homeUrl
    },
    on: {
      "pagestart": _vm.start,
      "pagefinish": _vm.finish,
      "error": _vm.error
    }
  })])
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 68:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _home = __webpack_require__(27);

var _home2 = _interopRequireDefault(_home);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_home2.default.el = '#root';
new Vue(_home2.default);

/***/ })

/******/ });